//
//  ChangeView.h
//  YuanyangJinlou
//
//  Created by mac004 on 2017/1/4.
//  Copyright © 2017年 suli19910309@qq.com. All rights reserved.
//  切换视图

#import <UIKit/UIKit.h>
@class ChangeView;
@protocol ChangeViewDelegate <NSObject>

- (void)onSelectItemForView:(UIView *)view withIndex:(NSInteger)selectIndex;

@end



@interface ChangeView : UIView
@property (nonatomic,assign)UIDeviceOrientation     orientation;
@property (nonatomic,assign)id<ChangeViewDelegate>delegate;
- (id)initWithFrame:(CGRect)frame
          withCount:(NSArray *)items
        withbgColor:(UIColor *)bgColor
    withSelectColor:(UIColor *)selectColor;

//更新选中状态
- (void)onUPdateUIForSelectIndex:(NSInteger)index;
//更新UI
- (void)onUpdateUIForTitle:(NSString *)title withIndex:(NSInteger)index;


@end
